home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5559 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news2.compulink.com!not-for-mail
  2. Newsgroups: comp.lang.c
  3. From: epoulin@idirect.com (Eric Poulin)
  4. Subject: Student -- need help with code changes at runtime?
  5. Content-Type: Text/Plain; charset=US-ASCII
  6. MIME-Version: 1.0
  7. X-Newsreader: WinVN 0.99.6
  8. X-Client-Port: 1029
  9. Message-ID: <ragnaroek1996Feb19.120437.2325@news2.compulink.com>
  10. X-Nntp-Posting-Host: havocnet29.idirect.com
  11. Date: 19 Feb 96 17:04:37 GMT
  12.  
  13. I'm sure this is a no-brainer that i just can't think of.  If someone does 
  14. know,
  15. please email me at epoulin@idirect.com.
  16.  
  17. Thanks,
  18.  
  19. Eric
  20.  
  21.  
  22. The program is for teachers to enter in grades under various categories (ie.
  23. quizes, exams)
  24. I have defined the following structure
  25.  
  26. typedef struct class_num {
  27.    int numberOfQuizes;
  28.    int numberofExams;
  29.    int quiz1OutOf;
  30.    int Quiz2OutOf;
  31.  
  32.    etc...
  33. } CLASS_NUM;
  34.  
  35. The problem is that I want the user (teacher) to be able to change the number
  36. of quizes given
  37. and even add new categories (ie Attendance).  How can I do this without 
  38. including that information in the struct?
  39. I have a couple of ideas but none of them will work.
  40. Any help is GREATLY appreciated.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.